package com.microservice.user;

import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.scheduling.annotation.EnableAsync;

/**
 * 用户服务启动类
 */
@SpringBootApplication(scanBasePackages = {"com.microservice.user", "com.microservice.common", "com.microservice.api"})
@EnableDiscoveryClient
@EnableFeignClients(basePackages = {"com.microservice.api"})
@MapperScan("com.microservice.user.mapper")
@Slf4j
@EnableAsync
public class UserApplication {
    
    public static void main(String[] args) {
        SpringApplication.run(UserApplication.class, args);
        log.info("╔════════════════════════════════════════════════════════════╗");
        log.info("║                        用户服务启动                          ║");
        log.info("╚════════════════════════════════════════════════════════════╝");
    }
}
